package com.rceeslca.common.utils;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 树节点
 * @author rceeslca
 */
@Data
public class TreeNode<T> implements Serializable {

    private static final long serialVersionUID = 4219297276388506267L;

    /**主键**/
    private Long id;

    /**上级ID**/
    private Long pid;

    /**子节点列表**/
    private List<T> children = new ArrayList<>();

}
